{load href="/static/editor/wangEditor.js" /}
<div class="right">
    <form method=post>
        <div class="form-group">
            <label for="exampleInputTitle">标题</label>
            <input type=text name=title class="form-control" id="exampleInputTitle" placeholder="标题">
            <label>关键字</label>
            <input type=text name=keyword class="form-control" placeholder="关键字"><br/>
            <label>简介</label>
            <textarea name=introduce class="form-control"></textarea>
            <label>内容</label>
            <div type=text id="editor"></div>
            <input type="hidden" name="content" id="content">
            <input name="image" id="image" onmouseover="preImage('image','preImg')" onmouseout="hidImage('image','preImg')">
            <img id="preImg" style="visibility: hidden; height: 150px;width: auto"/>
            缩略图：<input type=file name=file id=file onchange=addImg()><br/>
            {:token()}
            <input type=button class="btn btn-default" value=提交 onclick="submitWithEditor(editor2)">
        </div>
    </form>
    <script>
        var E = window.wangEditor
        var editor2 = new E('#editor')
        editor2.create()

    </script>
</div>